package org.hong.monkey.metrics.source

import com.codahale.metrics.MetricRegistry
import com.codahale.metrics.jvm.{MemoryUsageGaugeSet, GarbageCollectorMetricSet}

/**
 */
private[monkey] class JvmSource extends Source {
  override def sourceName: String = "jvm"
  override def metricRegistry: MetricRegistry = new MetricRegistry()

  metricRegistry.registerAll(new GarbageCollectorMetricSet)
  metricRegistry.registerAll(new MemoryUsageGaugeSet)
}
